#include <mpi.h>
#include <string.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    int rank, size;

    // Init.
	MPI_Init(&argc,&argv);
    // Get the size.
	MPI_Comm_size(MPI_COMM_WORLD,&size);
    // Get the rank.
	MPI_Comm_rank(MPI_COMM_WORLD,&rank); 
    // Hello world.
	printf("Hello, world.  I am %d of %d\n", rank, size);
    // Finalize.
	MPI_Finalize(); 
    return 0;
}
